package com.example.justbuy.service;

import org.activiti.engine.repository.Deployment;
import org.activiti.engine.repository.ProcessDefinition;
import org.activiti.engine.task.Task;

import java.io.InputStream;
import java.util.List;
import java.util.Map;

public interface WorkflowService {
    public String startProcessInstance();

    public void saveNewDeploye();

    public Map<String, Object> getVariablesByTask(String taskId);

    public String getTaskid(String did,String taskName);

    public void finshTask(String taskId,String typename);

    public String getProcessInstanceid(String taskId);

//    public List<Deployment> findDeploymentList();
//
//    public List<ProcessDefinition> findProcessDefinitionList();
//
//    public InputStream findImageInputStream(String deploymentId,String imageName);

//    public void deleteProcessDefinitionByDeploymentId(String deploymentId);

    public void updeAssignee(String assignee,String did);

    public List<Task> getTasks(String typename);

    public void completeTask(String taskId,String typename,Map<String,Object> map);
}
